<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <!--移动端的展示情况-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <title>博客</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
    <link rel="stylesheet" href="../static/css/writing.css">
    <link rel="stylesheet" href="../static/css/style.css">
</head>

<body>
    <div id="particles-js"></div>
    <!--导航-->
    <nav th:replace="_fragments :: menu(1)" class="ui inverted attached segment m-padded-tb-mini" id="navMenu" style="display: none;">
        <div class="ui teal header">
            <!-- ui stackable -->
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">Turo</h2>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini home icon"></i>首页</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini idea icon"></i>分类</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini tags icon"></i>标签</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini clone icon"></i>归档</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini info icon"></i>关于我</a>
                <div class="right m-item item m-mobile-hide">
                    <div class="ui icon inverted transparent input">
                        <input type="text" placeholder="Search....">
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>
<!--    https://www.xiaoxuya.top/img/background/background5.jpg-->
    <!-- 开头的图片 -->
    <div class="opening-picture">
            <img class="" th:src="@{/img/back_p8.jpg}" alt="">
        <div class="backgroundLayout">
            <div align="center" class="myOneDiv">
                <img class="ui tiny circular image " src="../static/lib/image/1.jpg" th:src="@{/lib/image/1.jpg}" />
                <div class="word">
                    <span style="font-family: Arial,正芳舒体">
                        “&nbsp;那些听不见音乐的人
                        <br>
                        <br>
                        认为那些跳舞的人疯了&nbsp;&nbsp;”
                </span>
                </div>
                <div class="myLink">
                    <a id="wechat" class="ui wechat circular icon button"><i class="weixin icon"></i></a>
                    <a id="QQ" class="ui qq circular icon button"><i class="qq icon"></i></a>
                    <a href="https://github.com/" target="_blank" class="ui circular icon button" data-tooltip="点击进入github" data-position="bottom center">
                        <i class="github icon"></i>
                    </a>
                    <a href="https://blog.csdn.net/Gaowumao?spm=1000.2115.3001.5343" target="_blank" class="ui circular icon button" data-tooltip="点击进入csdn" data-position="bottom center" data-inverted="">
                        <i class="skype icon"></i>
                    </a>
                    <a href="https://www.bilibili.com/" target="_blank" class="ui circular icon button" data-tooltip="点击进入b站" data-position="bottom center">
                       <i class="bitcoin icon"></i>
                    </a>

<!--                    <div id="wechatPic" class="ui flowing popup transition hidden">-->
<!--                        <img class="ui small rounded image" src="" />-->
<!--                    </div>-->
<!--                    <div id="QQPic" class="ui flowing popup transition hidden">-->
<!--                        <img class="ui small rounded image" src="">-->
<!--                    </div>-->
                    <div class="ui wechat-qr flowing popup transition hidden">
                        <img src="../static/img/wechat.jpg" th:src="@{/img/wechat.jpg}" alt="" class="ui rounded image" style="width: 110px;">
                    </div>
                    <div class="ui qq-qr flowing popup transition hidden">
                        <img src="../static/img/qq.jpg" th:src="@{/img/qq.jpg}" alt="" class="ui rounded image" style="width: 110px;">
                    </div>

                </div>
                <div class="guidance">
                    <a href="#top">
                        <i class="ui chevron down icon"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>

    <!--中间部分-->
    <div class="m-container m-padded-tb-big ">
        <div class="ui container">


            <!--寄语-->
            <div class="ui top attached segment grid" id="top">
                <div class=" row ui padded raised link card segment article stackable">
                    <div class="eight wide column">
                        <h3 class="ui header myWord">寄语</h3>
                        <p>
                            If not to the sun for smiling, warm is still in the sun there, but we will laugh more confident calm;
                        </p>
                        <p>
                            if turned to found his own shadow, appropriate escape, the sun will be through the heart,warm each place behind the corner;
                        </p>
                        <p>
                            if an outstretched palm cannot fall butterfly, then clenched waving arms, given power;
                        </p>
                        <p>
                            if I cant have bright smile, it will face to the sunshine, and sunshine smile together, in full bloom.
                        </p>
                    </div>
                    <div class="right aligned eight wide column ">
                        <img th:src="@{/img/autumn2.jpg}" class="ui rounded huge image">
                    </div>
                </div>
            </div>






            <!--最上面的top-->
            <div class="ui padded grid">

                <div class="two column padded row  stackable top-1" >
                    <!--分类-->
                    <div class="ui segments column top-2" id="top-2">
                        <div class="ui secondary segment" >
                            <div class="ui two column grid">
                                <div class="column">
                                    <i class="idea icon"></i>分类
                                </div>
                                <div class="right aligned column">
                                    <a th:href="@{/types/-1}" target="_blank">more <i class="angle double right icon"></i></a>
                                </div>
                            </div>
                        </div>
                        <div class="ui teal segment ">
                            <div class="ui fluid vertical menu">
                                <a th:href="@{/types/{id}(id=${type.id})}" target="_blank" class="item" th:each="type:${types}">
                                    <span th:text="${type.name}"> 学习日志</span>
                                    <div class="ui teal basic left pointing label" th:text="${#arrays.length(type.blogs)}">13</div>
                                </a>
                            </div>
                        </div>
                    </div>

                    <!--标签-->
                    <div class="ui segments m-margin-top-large column top-3">
                        <div class="ui secondary segment">
                            <div class="ui two column grid">
                                <div class="column">
                                    <i class="tags icon"></i>标签
                                </div>
                                <div class="right aligned column">
                                    <a th:href="@{/tags/-1}" target="_blank">more <i class="angle double right icon"></i></a>
                                </div>
                            </div>
                        </div>
                        <div class="ui teal segment top-box">
                            <a th:href="@{/tags/{id}(id=${tag.id})}" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny" th:each="tag:${tags}">
                                <span th:text="${tag.name}">唯物主义</span>
                                <div class="detail" th:text="${#arrays.length(tag.blogs)}">23</div>
                            </a>
                        </div>
                    </div>

                </div>

            </div>


            <!--最新推荐-->
            <div class="ui  m-margin-top-large top-4">
                <div class="new-comment">
                    <i class="bookmark icon"></i>最新推荐
                </div>
                <div class="grid">
                    <div class="row" :id="article.id">
                        <div class="ui four cards stackable">

                            <div class="ui now-hidden link card" th:each="blog:${recommendBlogs}">
                                <div class="image">
                                    <img th:src="${blog.firstPicture}" src="https://unsplash.it/100/100?image=1005" alt="">
                                </div>
                                <div class="title">
                                    <a th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black m-text-thin now-hidden">
                                        <p class="now-zi" th:text="${blog.title}">钢龙1</p>
                                    </a>
                                </div>
                            </div>

                        </div>

                    </div>
                </div>

            </div>

<!--            博客列表-->
            <div class="ui stackable grid top-bottom">
                <!--下面的博客列表-->
                <div class=" column">
                    <!--header-->
                    <div class="ui top attached segment c-spare">
                        <div class="ui middle aligned two column grid ">
                            <div class="column">
                                <h3 class="ui teal header">博客列表</h3>
                            </div>
                            <div class="right aligned column">
                                <!--                                    共-->
                                <!--                                    <h2 class="ui orange header m-inline-block m-text-thin" th:text="${page.totalElements}">14</h2>篇-->
                            </div>
                        </div>
                    </div>
                    <!--中间内容content-->

                    <div class="ui container sanDa">
                        <div class="ui top attached segment grid ">
                            <div class=" row ui padded raised link card segment article stackable" th:each="blog:${page.content}">
                                <div class="eleven wide column">
                                    <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">你真正的了解Java吗？</a></h3>
                                    <p class="m-text" th:text="|${blog.description}......|">对于Java这门高级语言的理解，一般都停留在它是这个行业的领军者，这个行业最火的一个编程语言……</p>
                                    <div class="ui grid">
                                        <div class="eleven wide column">
                                            <div class="ui mini horizontal link list">
                                                <div class="item">
                                                    <img src="https://unsplash.it/100/100?image=1005" th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                                    <div class="content"><a class="header" th:text="${blog.user.nickName}">turo</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2021-4-11</span>
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i><span th:text="${blog.views}">4244</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="right aligned five wide column">
                                            <a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${blog.type.name}">认知升级</a>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column ">
                                    <a th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                        <img src="https://unsplash.it/800/450?image=1005" th:src="${blog.firstPicture}" alt="" class="ui rounded image">
                                    </a>
                                </div>
                            </div>
                        </div>

                        <div class="ui bottom attached segment " th:if="${page.totalPages}>1">
                            <div class="ui middle aligned two column grid">
                                <div class="column">
                                    <a th:href="@{/(page=${page.number}-1)}" th:unless="${page.first}" class="ui mini teal basic button">上一页</a>
                                </div>
                                <div class="right aligned column">
                                    <a th:href="@{/(page=${page.number}+1)}" th:unless="${page.last}" class="ui mini teal basic button">下一页</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>




        </div>

    </div>

    <!--底部footer-->
    <footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive bottom">
        <div class="ui center aligned container bottom-one">
            <div class="ui inverted divided stackable grid " id="bottom-two">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/img/wechat.jpg" th:src="@{/img/wechat.jpg}" class="ui rounded image" alt="" style="width: 110px">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-spaced m-opacity-mini">学习网站 </h4>
                    <div class="ui inverted link list">
                        <a href="https://github.com/" class="item"><i class="github icon"></i>GitHub</a>
                        <a href="https://www.bilibili.com/" class="item"><i class="bitcoin icon"></i>BiliBili</a>
                        <a href="https://gitee.com/" class="item"><i class="git icon"></i>Gitee</a>
                        <a href="" class="item"><i class="skype icon"></i>CSDN</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header  m-text-spaced m-opacity-mini">联系我</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item" >Email: none-j@qq.com</a>
                        <a href="#" class="item">QQ: 1521126127</a>
                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header  m-text-spaced m-opacity-mini">Turo</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-mini">这是我的个人博客、会分享关于编程、写作、学习、思考相关的任何内容，希望可以给来到这的人有所帮助……</p>
                </div>
            </div>
            <div class="ui inverted section divider "></div>
            <div>
                <div class="m-text-thin m-text-spaced m-opacity-tiny" id="time"></div>
                <p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright @2021-2022 Turo Designed by Turo</p>
            </div>
        </div>
    </footer>

    <!--/*/<th:block th:replace="_fragments :: script">/*/-->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
    <script src="../static/lib/js/writing.js"></script>
    <script src="../static/lib/js/particles.min.js"></script>
    <script src="../static/lib/js/app.js"></script>
    <!--/*/</th:block>/*/-->

    <script>
        $('.menu.toggle').click(function() {
            $('.m-item').toggleClass('m-mobile-hide');
        });
        window.addEventListener('scroll', function() {
            var t = $('body, html').scrollTop();
            if (t > 715) {
                $('#navMenu').addClass('navDiv-active');


            } else {
                $('#navMenu').removeClass('navDiv-active');
                $(".aplayer").addClass('aplayer-hide');
            }
        });

    </script>
</body>

</html>